﻿using KingsSharp.Core.Data.Entity;
using CRM.Admin.Contracts.Model.Sys;
using System;

namespace CRM.Admin.Services.EntityConfigurations.Sys
{
    public class UserInfoConfiguration : EntityConfigurationBase<UserInfo, Guid>
    {
        public UserInfoConfiguration()
        {

            this.Property(a => a.Name).HasMaxLength(20);
            this.Property(a => a.Browser).HasMaxLength(80);
            this.Property(a => a.IdNumber).HasMaxLength(22);
            this.Property(a => a.LastLoginIp).HasMaxLength(30);
            this.Property(a => a.LoginCode).HasMaxLength(30);
            this.Property(a => a.Password).HasMaxLength(30);
            this.Property(a => a.Phone).HasMaxLength(15);
            this.Property(a => a.Tel).HasMaxLength(15);
            this.Property(a => a.Remark).HasMaxLength(500);
            this.Property(a => a.LastLoginIp).HasMaxLength(30);
            this.Property(a => a.Browser).HasMaxLength(30);
            this.Property(a => a.Signature).HasMaxLength(100);

        }
    }
}
